//
//  UIImageView+URL.m
//  Expert
//
//  Created by 刘华舟 on 15/4/3.
//  Copyright (c) 2015年 BLUEBLACK. All rights reserved.
//

#import "UIImageView+URL.h"
#import "UIImageView+WebCache.h"

@implementation UIImageView (URL)


- (void)setImageWithURL:(NSString *)url{
    [self sd_setImageWithURL:[NSURL URLWithString:[url stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]] placeholderImage:nil];
}

- (void)setImageWithURL:(NSString *)url placeholderImage:(UIImage *)placeholder{
    [self sd_setImageWithURL:[NSURL URLWithString:[url stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]] placeholderImage:placeholder];
}

- (void)setImageWithURL:(NSString *)url placeholderImage:(UIImage *)placeholder options:(NSInteger) option{
    [self sd_setImageWithURL:[NSURL URLWithString:[url stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]] placeholderImage:placeholder options:option];
}

@end
